package net.towee.client.com.dashboard;

import net.towee.client.com.dashboard.presenter.BoardEditorPresenter;
import net.towee.client.com.dashboard.presenter.DashBoardPresenter;
import net.towee.client.com.dashboard.presenter.GadgetPusherPresenter;
import net.towee.client.com.dashboard.view.BoardEditorView;
import net.towee.client.com.dashboard.view.DashBoardView;
import net.towee.client.com.dashboard.view.GadgetPusherView;

import com.google.gwt.inject.client.AbstractGinModule;
import com.google.inject.Singleton;

public class DashBoardModule extends AbstractGinModule {

	@Override
	protected void configure() {
		// DashBoard
		bind(DashBoard.class).to(DashBoardPresenter.class).in(Singleton.class);
		bind(DashBoardPresenter.Display.class).to(DashBoardView.class).in(Singleton.class);
		
		// Board editor
		bind(BoardEditor.class).to(BoardEditorPresenter.class);
		bind(BoardEditorPresenter.Display.class).to(BoardEditorView.class);
		
		// Gadget pusher
		bind(GadgetPusher.class).to(GadgetPusherPresenter.class);
		bind(GadgetPusherPresenter.Display.class).to(GadgetPusherView.class);
	}
	
}
